home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
mac
/
LOGIC Apple II 5.25" Library - ProDOS
/
PRO001.dsk
/
DG.DEMO3.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
787b
|
21 lines
100 REM MOIRE PATTERNS
110 PRINT CHR$(4)"PR#3":W = 559:D = 191
120 DEF FN R(Z) = 1 + INT( RND(1) *Z)
130 XC = INT(W/4) + FN R(W/2):YC = INT(D/4) + FN R(D/2)
140 S = 1 + FN R(4)
150 & DG: FOR X = 0 TO W -1 STEP S
160 & HUE = 15: & DOT AT XC,YC: & LINE TO X,0
170 & DOT AT XC,YC: & LINE TO W -X,D
180 & HUE = 0: & DOT AT XC,YC: & LINE TO X +1,0
190 & DOT AT XC,YC: & LINE TO W -X -1,D
200 NEXT
210 FOR Y = 0 TO D -1 STEP S
220 & HUE = 15: & DOT AT XC,YC: & LINE TO W,Y
230 & DOT AT XC,YC: & LINE TO 0,D -Y
240 & HUE = 0: & DOT AT XC,YC: & LINE TO W,Y +1
250 & DOT AT XC,YC: & LINE TO 0,D -Y -1
260 NEXT
270 POKE 49168,0: FOR I = 1 TO 600
280 IF PEEK(49152) >127 GOTO 300
290 NEXT : GOTO 150
300 POKE 49168,0: PRINT CHR$(4)"PR#3": PRINT CHR$(21): TEXT : HOME